import request from '@/axios/axios.js'

// 查询物料主数据分页
export const getMaterialPage = (data) => {
    return request({
        url: '/dms/plmMaterialRoute/materialPage',
        method: 'post',
        data,
    })
}
//工艺路线查询
export const getRoutePage = (params) => {
    return request({
        url: '/dms/plmMaterialRoute/routeByMaterialCodePage',
        method: 'get',
        params,
    })
}
//制造工序分页
export const getProcessesPage = (params) => {
    return request({
        url: '/dms/plmMaterialRoute/materialProcessesPage',
        method: 'get',
        params,
    })
}
//关联设备分页
export const getAssDevicePage = (params) => {
    return request({
        url: '/dms/plmMaterialRoute/assDevicePage',
        method: 'get',
        params,
    })
}
//关联工装分页
export const getAssEquipPage = (params) => {
    return request({
        url: '/dms/plmMaterialRoute/assEquipPage',
        method: 'get',
        params,
    })
}